<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/articlecomment/lists" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

    <div class="page">
        <div class="page-hd">
            <h1>文章评论管理</h1>
        </div>
        <div class="navbar">
            <ul class="nav">
                <li <eq name="weibo_tab" value="cur">class="active"</eq>><a href="{:URL('admin/Content/comment','from_app=weibo')}">{$Think.lang.weibo}</a>
                </li>
                <li <eq name="recycle_tab" value="cur">class="active"</eq>><a href="{:URL('admin/Content/comment','from_app=weibo&recycle=1')}">{$Think.lang.weiboRecycle}</a>
                </li>
                <li <eq name="other_tab" value="cur">class="active"</eq>><a href="{:URL('admin/Content/comment','from_app=other')}">{$Think.lang.otherApp}</a>
                </li>
                <li class="active"><a href="{:URL('admin/ArticleComment/lists')}">{$Think.lang.cms}</a>
                </li>
            </ul>
        </div>
        <div class="filterbar">
            <form id="search" action="{:URL('admin/ArticleComment/lists')}" method="post">
                <label for="id">ID</label>
                <input type="text" name="id" value='{$Think.post.id}'>
                <label for="user_id">评论者ID</label>
                <input type="text" name="user_id" value='{$Think.post.user_id}'>
                <label for="article_id">被评论文章ID</label>
                <input type="text" name="article_id" value="{$Think.post.article_id}">
                <label for="content">评论内容</label>
                <input type="text" name="content" value="{$Think.post.content}">
                <button type="submit" class="btn-search" id="J_search" title="{$Think.lang.search}">
                    <i class="icon-search"></i>
                </button>
            </form>
        </div>
        <div class="datas">
            <div class="datas-bd">
                <table class="table">
                    <thead>
                        <tr>
                            <th style="width: 10px">
                                <input type="checkbox" class="toggle-all" />
                            </th>
                            <th style="width:20px">ID</th>
                            <th style="width:60px">评论者(ID)</th>
                            <th style="width:60px">评论者IP</th>
                            <th style="width:60px">评论时间</th>
                            <th style="width:50px">被评论文章ID</th>
                            <th style="width:50px">被回复评论ID</th>
                            <th style="width:100px">评论内容</th>
                            <th style="width:40px">点赞次数</th>
                            <th style='width:30px;'>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <volist id="vo" name="lists">
                        <tr data-id="{$vo.id}">
                            <td>
                                <input type="checkbox" class="toggle" />
                            </td>
                            <td>{$vo.id}</td>
                            <td>{$vo.author}({$vo.user_id})</td>
                            <td>{$vo.ip}</td>
                            <td>{:date('Y-m-d H:i:s',$vo['commenttime'])}</td>
                            <td>{$vo.article_id}</td>
                            <td>
                        <if condition='$vo.type neq 0'>
                            {$vo.parent}
                            <else />
                            --
                        </if>
                        </td>
                        <td>{$vo.content}</td>
                        <td>{$vo.praise_count}</td>
                        <td><a href="javascript:;" class="A_del">{$Think.lang.delete}</a></td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>

            <div class="datas-ft">
                <div class="actions">
                    <a href="javascript:;" class="btn" id="J_del">{$Think.lang.deleteComment}</a>
                </div>
                <div class="pager" style="text-align: right">{$page}</div>
            </div>

        </div>
    </div>
</body>

</html>
